package com.project.controller;

import com.project.bean.ColumBean;
import com.project.bean.ColumnBean2;
import com.project.service.IColumService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 销售统计控制器
 */
@RestController
@RequestMapping("colum")
public class ColumController {
    @Autowired
    private IColumService columService;
    @RequestMapping("findClassesSaleByYear")
    @RequiresPermissions("column:am")
    public List<ColumnBean2> findClassesSaleByYear(String year){
        return columService.findClassesSaleByYear(year);
    }
}
